import EventEmitter from 'events';

const emitter = new EventEmitter();
emitter.setMaxListeners(200);

if (window.emitter === undefined) {
  window.emitter = emitter;
}

export default emitter;
